import request from '@/utils/request'

// 查询科室疾病关联列表
export function listDepartdisease(query) {
  return request({
    url: '/hospital/departdisease/list',
    method: 'get',
    params: query
  })
}

// 查询科室疾病关联详细
export function getDepartdisease(id) {
  return request({
    url: '/hospital/departdisease/' + id,
    method: 'get'
  })
}

// 新增科室疾病关联
export function addDepartdisease(data) {
  return request({
    url: '/hospital/departdisease',
    method: 'post',
    data: data
  })
}

// 修改科室疾病关联
export function updateDepartdisease(data) {
  return request({
    url: '/hospital/departdisease',
    method: 'put',
    data: data
  })
}

// 删除科室疾病关联
export function delDepartdisease(id) {
  return request({
    url: '/hospital/departdisease/' + id,
    method: 'delete'
  })
}
